<ion-view view-title="团购一览">

  <ion-content>
  	<div class="row padding-0 font-large-my text-center">
		<div class="col" ng-class="selectIndex==0?'top-activated':''" on-tap="activeSlide(0)">
	                进行中
     </div>
		<div class="col"  ng-class="selectIndex==1?'top-activated':''" on-tap="activeSlide(1)">
			已结束
		</div>		
	</div>
  	
  	<!--描述：主要内容-->
<ion-slide-box delegate-handle="main-handle" on-slide-changed="slideChanged(index)" active-slide="slideIndex" show-pager="false">
	<!--旗舰店发起-->
	<ion-slide>	
		<div class="list list-borderless" ng-repeat="doing in doing.act">
			<div class="item item-thumbnail-left" style="padding-right: 5px; padding-bottom:5px; padding-top:0px;" >
					<img src="{{doing.image.image}}">
					<p >{{doing.name}}</p> 
					<p><span class="assertive">{{doing.name}}</span></p>
					<p><i class="icon ion-clock"></i>{{doing.start_time}}</p>
					<p><i class="icon ion-clock"></i>{{doing.end_time}}</p>
					<p>
						<span on-tap="onshow_group_agent(doing.act_id)"><i class="icon ion-person assertive" ></i>参加</span>
						<i class="icon ion-android-contacts assertive margin-left-10-my"></i>群互动
					</p>
			  </div>
		</div>
	</ion-slide>
	
	<ion-slide>	
		<div class="list list-borderless" ng-repeat="ended in ended.act">
			<div class="item item-thumbnail-left" style="padding-right: 5px; padding-bottom:5px; padding-top:0px;" >
					<img src="{{ended.image.image}}">
					<p >{{ended.name}}</p> 
					<p><span class="assertive">{{ended.name}}</span></p>
					<p><i class="icon ion-clock"></i>{{ended.start_time}}</p>
					<p><i class="icon ion-clock"></i>{{ended.end_time}}</p>
					<p>
						<span on-tap="onshow_statistics_groupbuy_agent(doing.act_id)"><i class="icon ion-android-options assertive"></i>统计</span>
					</p>
			  </div>
		</div>
	</ion-slide>
		
	</ion-content>
</ion-view>